import { lazy } from 'react';
// import asyncComponent from './async';
import getWebRoute from './web';
const Dashboard = lazy(() => import('../pages/Dashboard'));
const Agent = lazy(() => import('../pages/Agent'));

const routes = [
    {
        path: '/dashboard',
        component: Dashboard
    },
    {
        path: '/agent',
        component: Agent
    }
];

const Router = () => {
    return getWebRoute(routes);
};

export default Router;
